package com.wms.mapper;

import com.wms.dto.AllocatedetailAuditDTO;
import com.wms.dto.AllocatedetailAuditVo;
import com.wms.dto.TransferPassDTO;
import com.wms.entity.AllocateDetailAudit;
import com.wms.entity.Allocatedetail;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AllocatedetaiAuditMapper {
    List<AllocateDetailAudit> selectByOrderId(AllocatedetailAuditDTO allocatedetailAuditDTO);

    /**
     * 审核通过修改内容
     * @param
     * @return
     */
    int update(@Param("id")Integer id, @Param("auditNum")Integer auditNum, @Param("applyNum") Integer applyNum,@Param("pending_transfer_total") Integer pending_transfer_total, @Param("availableStock")Integer availableStock);


    /**
     * 查看已经审核的内容
     */
    List<TransferPassDTO> selectPass(Integer orderId);


    /**
     * 审核通过更改审核数量
     * @param id
     * @param auditNum
     * @return
     */
    int updateAuditNum(@Param("id") int id ,@Param("auditNum") int auditNum);

}
